<?php
ini_set('display_errors', 'On');

error_reporting(E_ALL ^ E_DEPRECATED);

ob_start();

session_start();

ini_set('max_execution_time', 300);

// cai dat web root

$thisFile = str_replace('\\', '/', __FILE__);

$docRoot = $_SERVER['DOCUMENT_ROOT'];

$webRoot  = str_replace(array($docRoot, 'library/config.php'), '', $thisFile);

$srvRoot  = str_replace('library/config.php', '', $thisFile);


// dinh nghia thu muc web

define('WEB_ROOT', $webRoot); //datn1415/
define('ICON_DIR',$webRoot.'/manager/images');
define('SRV_ROOT', $srvRoot); // : C:/..../


// bao mat

if (isset($_POST)) {
		foreach ($_POST as $key => $value) {
			$_POST[$key] =  str_replace("'","", $value);
		}
	
}

if (isset($_GET)) {
		foreach ($_GET as $key => $value) {
			$_GET[$key] =  str_replace("'","", $value);
		}
	
}



/*
if (isset($_GET)) {
		foreach ($_GET as $key => $value) {			
			$_GET[$key] =  md5($value);

		}	
}
*/